<?php

    require_once('../SiteIncludes.GLOBAL.php');
    
    if(EclipseMDE::runningOnMod_Rewrite() === false) {
	// Security Guard, Do Not Let This be accessed by any other means than mod_rewrite
	$gVAR['e'] = '404';
	require_once('error_handler.php');
	die();
    }
    
    // Add Javascript for cleanup script and confirmer script
    $TemplateEngine->add_postloadScript('<script type="text/javascript" src="/js/ajaxCleanup.js"></script>');
    $TemplateEngine->add_postloadScript('<script type="text/javascript" src="/js/ajaxConfirmer.js"></script>');
    $TemplateEngine->add_postloadScript('<script type="text/javascript" src="/js/EMDE.js"></script>');
    $TemplateEngine->add_postloadScript('<script type="text/javascript" src="/js/ToolTip.js"></script>');
    
    // Add the search box from the templater
    $TemplateEngine->create_content_html($Templater->project_searchbox());
    
    // Hide sidebar
    $TemplateEngine->setHasSidebar(false);
    $TemplateEngine->setCentralContentFullWidth(true);
    
    $TemplateEngine->render();
?>
